import Vue from 'vue';
import Router from 'vue-router';
import Home from './views/Home.vue';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/home',
      name: 'home',
      component: Home,
    },

    {
      path: '/pwdLogin',
      name: 'pwdLogin',
      component: () => import('@/views/User/pwdLogin.vue'),
    },

    {
      path: '/user/home',
      name: 'usercenter',
      component: () => import('@/views/User/Home'),
    },
    {
      path: '/user/personal',
      name: 'personal',
      component: () => import('@/views/User/personal'),
    },
    {
      path: '/user/pay',
      name: 'pay',
      component: () => import('@/views/User/pay'),
    },
    {
      path: '/user/change_pwd',
      name: 'change_pwd',
      component: () => import('@/views/User/change_pwd'),
    },
    {
      path: '/user/change_pwd_fstep',
      name: 'change_pwd_fstep',
      component: () => import('@/views/User/change_pwd_fstep.vue'),
    },
    {
      path: '/user/change_pwd_sstep',
      name: 'change_pwd_sstep',
      component: () => import('@/views/User/change_pwd_sstep.vue'),

    },
    {
      path: '/user/payok',
      name: 'payok',
      component: () => import('@/views/User/payok'),
    },
    {
      path: '/user/order',
      name: 'order',
      component: () => import('@/views/User/order'),
    },
    {
      path: '/user/conect',
      name: 'conect',
      component: () => import('@/views/User/conect'),
    },
    {
      path: '/user/change_tele',
      name: 'change_tele',
      component: () => import('@/views/User/change_tele.vue'),

    },
    {
      path: '/user/change_tele_fstep',
      name: 'change_tele_fstep',
      component: () => import('@/views/User/change_tele_fstep.vue'),

    },
    {
      path: '/pay/bill',
      name: 'bill',
      component: () => import('@/views/pay/bill.vue'),
    },
    {
      path: '/pay/bill_details',
      name: 'bill_details',
      component: () => import('@/views/pay/bill_details.vue'),
    },

    {
      path: '/autoLogin',
      name: 'autoLogin',
      component: () => import('@/views/User/autoLogin.vue'),
    },
    {
      path: '/setPwd',
      name: 'setPwd',
      component: () => import('@/views/User/setPwd.vue'),
    },
      {
          path: '/user/realname',
          name: 'realname',
          component: () => import('@/views/User/realname.vue'),
      },
    {
      path: '/contract',
      name: 'contract',
      component: () => import('@/views/User/Contract.vue'),
    },
    {
      path: '/user/realname_details',
      name: 'realname_details',
      component: () => import('@/views/User/realname_details.vue'),
    },

    {
      path: '/',
      name: 'list',
      component: () => import('@/views/house/list'),
    },
    {
      path: '/house/adres',
      name: 'adres',
      component: () => import('@/views/house/adres'),
    },

    {
      path: '/contract_list',
      name: 'contract_list',
      component: () => import('@/views/User/Contract_list.vue'),
    },

    {
      path: '/house/detail',
      name: 'detail',
      component: () => import('@/views/house/detail'),
    },


  ],
});
